void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:

}

//H2
const int LedPin = 2;
void setupH2() {
  pinMode(WenDuPin, INPUT);
}
void loopH2() {
  int value = analogRead(WenDuPin) * 500 / 1024;
  if (value > 30) {
    digitalWrite(LedPin, HIGH);
  } else {
    digitalWrite(LedPin, LOW);
  }
  delay(1000);
}

//H1
const int WenDuPin = A0;
void setupH1() {
  pinMode(WenDuPin, INPUT);
}
void loopH1() {
  int value = analogRead(WenDuPin);
  Serial.println(value * 500 / 1024);
  delay(1000);
}
